package mc

import (
	"gitee.com/dreamwood/ez-go/db/mgo"
)

const (
	WordTestPaperEventNew          = "study.WordTestPaperNew"
	WordTestPaperEventBeforeCreate = "study.WordTestPaperBeforeCreate"
	WordTestPaperEventBeforeUpdate = "study.WordTestPaperBeforeUpdate"
	WordTestPaperEventBeforeSave   = "study.WordTestPaperBeforeCreate study.WordTestPaperBeforeUpdate"
	WordTestPaperEventAfterCreate  = "study.WordTestPaperAfterCreate"
	WordTestPaperEventAfterUpdate  = "study.WordTestPaperAfterUpdate"
	WordTestPaperEventAfterSave    = "study.WordTestPaperAfterCreate study.WordTestPaperAfterUpdate"
	WordTestPaperEventDelete       = "study.WordTestPaperDelete"

	WordTestPaperAccessControlEvent = "study.WordTestPaperAccessControl"
)

func GetWordTestPaperConfig() *mgo.DocConfig {
	return WordTestPaper_Config
}

var WordTestPaper_Config *mgo.DocConfig

func init() {
	WordTestPaper_Config = NewWordTestPaperConfig()
}

func NewWordTestPaperConfig() *mgo.DocConfig {
	return &mgo.DocConfig{
		ContainerKey: "study.WordTestPaper",
		Fields: []string{
			"name", "ids",
		},
		RelationFields:  []string{},
		RelationConfigs: map[string]*mgo.DocRelation{},
		FieldFilter: map[string]*mgo.DocFieldFilter{
			"default": {
				Select: []string{},
				Omit:   []string{},
			},
		},
	}
}
